<template>
    <div id="en">
        <div class="btn">
            <button v-show="index>0" @click="index--">上一页</button>
        </div>
        <div>
            <img :src="list[index]" alt="">
        </div>
        <div class="btn">
            <button v-show="index<list.length - 1" @click="index++">下一页</button>
        </div>

    </div>
</template>

<script>
    export default {
        name: "10-vue-切换图片",
        data() {
            return {
                index: 0,
                list: [
                    './imgs/11-00.gif',
                    './imgs/11-01.gif',
                    './imgs/11-02.gif',
                    './imgs/11-03.gif',
                    './imgs/11-04.png',
                    './imgs/11-05.png',
                ]
            }
        },
        methods: {
            fn(e) {


            }
        }
    }
</script>

<style scoped>

</style>